import request from '@/utils/request';

export  const loginApi = (data:object) =>{
    return request({
        url:'/api/auth/login',
        method:'POST',
        data
    })
}
export const user = () => {
    return request({
        url:'/api/admin/user',
        method:'GET',

    })

}

export const logout = () => {
    return request({
        url:'/api/auth/logout',
        method:'POST',

    })
}